<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>收款管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/refund.js"></script>
</head>
<body>
<%--列表--%>
<table id="ref_datagrid"></table>
<%--列表顶部工具栏--%>
<div id="ref_toolbar">
    <div id="tb">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">新增</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="show()">查看</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="change_btn" onclick="changeState()">审核</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload()">刷新</a>


        <input class="easyui-textbox" type="text" name="keyword" id="keyword" prompt="按照名字和电话查询"/>
        
        开始时间 <input class="easyui-datebox" type="text" name="beginDate" id="beginDate"/>～
        结束时间 <input class="easyui-datebox" type="text" name="endDate" id="endDate"/>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="query()">查询</a>



<%--保存/编辑 对话框--%>
<div id="ref_dialog">
    <form method="post" id="ref_form">
        <input type="hidden" id="refId" name="id"/>
        <h3 style="color:#0c80d7;margin-left: 10px;margin-top: 5px;">基本信息</h3>
        <table align="center" style="margin-top:15px" cellpadding="5">
            <tr>
                <td>姓名:</td>
                <td><input type="text" class="easyui-combobox" name="officialstu.id" data-options="
                                              url:'/officialstu/selectName',
                                              valueField: 'id',
                                              textField: 'name',
                                              panelHeight: 'auto'"
                ></td>


                <td>退款日期:</td>
                <td><input type="text" class="easyui-datebox" name="refundtime"/></td>

                <td>单据号:</td>
                <td><input type="text" class="easyui-textbox" name="receipts"/></td>
            </tr>
<tr>
               <td>花费类型:</td>
               <td><input type="text" class="easyui-textbox" name="expenditure"/></td>
                <td>班级</td>
                <td><input class="easyui-combobox" name="grade.id" data-options="
                                              url:'/grade/selectGrade',
                                              valueField: 'id',textField: 'name',
                                              panelHeight: 'auto'">
        </tr>

            <tr>
                <td>收款方式:</td>
                <td>
                    <input class="easyui-combobox" name="payment.id" panelHeight="auto"
                           data-options="
                                            url:'/dataDict/selsectForSchool?parentId=77',
                                            editable: false,
                                            valueField: 'id',
                                            textField: 'name'
                                       "/>
                </td>

                <td>退款金额:</td>
                <td>
                    <input class="easyui-textbox" name="leavestu.id" panelHeight="auto"
                           data-options="
                                           url:'/leavestu/selecttotal',
                                              valueField: 'id',
                                              textField: 'refundamount',
                                              panelHeight: 'auto'"
                    />
                </td>
            </tr>
            <tr>
                <td>支出人:</td>
                <td><input class="easyui-combobox" name="employee.id"
                           data-options="url:'/employee/queryDates',valueField:'id',textField:'realName',panelHeight:'auto'"
                /></td>

                <td>录入人:</td>
                <td><input class="easyui-combobox" name="inputuser.id"
                           data-options="url:'/employee/queryDates',valueField:'id',textField:'realName',panelHeight:'auto'"
                /></td>

            </tr>
            <tr>
                <td>状态</td>
                <td>
                    <input class="easyui-combobox" type="text" name="state"
                           data-options="valueField:'value',textField:'label',panelHeight:'auto',
                    data:[{
                        label:'已审核',
                         value:'1'
                    },{
                         label:'未审核',
                         value:'0'
                    }]" >
                </td>

            </tr>
            <tr>
                <td>退款原因:</td>
                <td colspan="10"><input class="easyui-textbox"  style="width:300px;height: 100px " name="cause" multiline="true"/>

                </td>


            </tr>
        </table>
    </form>
</div>

<div id="bb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="cencel()">取消</a>
</div>
</body>
</html>
</html>